/**
 * 格式化工具类型定义
 */

export interface NumberFormatOptions {
  locale?: string
  style?: 'decimal' | 'currency' | 'percent'
  currency?: string
  minimumFractionDigits?: number
  maximumFractionDigits?: number
  useGrouping?: boolean
}

export interface DateFormatOptions {
  locale?: string
  year?: 'numeric' | '2-digit'
  month?: 'numeric' | '2-digit' | 'long' | 'short' | 'narrow'
  day?: 'numeric' | '2-digit'
  hour?: 'numeric' | '2-digit'
  minute?: 'numeric' | '2-digit'
  second?: 'numeric' | '2-digit'
  weekday?: 'long' | 'short' | 'narrow'
  timeZone?: string
}

export interface FileSizeUnit {
  name: string
  value: number
}